﻿using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 接口
{
    class Clas : IHtunr
    {
        public int Abb { get; set; }

        public void ISname()
        {
         
        Console.WriteLine("普通攻击");
        }

    }
    class As : IHtunr
    {
        public int Abb { get; set; }
        public void ISname()
        {
            Console.WriteLine("huixie");
        }

    }
    abstract class Ad : IHtunr
    {
        abstract public int Abb { get; set; }

        public void ISname()
        {
            Console.WriteLine("huixie2222");
        }
    }
    //显式类


    class Ac : AP
    {
        int AP.PHAP { get; set ; }
        string AP.GAmeID { get ; set; }
        public int Magic { get; set; }
        public int Physics { get; set; }

        void AP.sum()
        {
            int sum = Physics + Magic;
            Console.WriteLine("总伤害为"+sum);
        }
    }

}
